home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Controls GH ƒ / Slider Control GH / Slider.h < prev   
Encoding:
C/C++ Source or Header  |  1993-10-01  |  1.4 KB  |  41 lines  |  [TEXT/R*ch]

  1. /************************ Slider.h ********************/
  2. #pragma once
  3.  
  4. typedef struct ThumbInfo
  5. {
  6.     Rect    limitRect;
  7.     Rect    slopRect;
  8.     short    axis;
  9. }ThumbInfo;
  10. typedef struct Private
  11. {
  12.     Boolean        useColorQD;
  13.     Boolean        devicesAvailable;
  14.     short        oldValue;
  15.     Point        entryPoint;
  16.     RGBColor    frameColor;
  17.     RGBColor    thumbColor;
  18. }Private, *PrivatePtr, **PrivateHandle; 
  19.  
  20. /************* prototypes *****************/
  21. void    CalcGrayRect(ControlHandle me, Rect *grayRect, Rect *whiteRect);
  22. long CalcRegion(ControlHandle me, RgnHandle theRegion, char calcThumb);
  23. short CalcRounding(Rect *ctlRect);
  24. long CalcStripRegion(ControlHandle me, RgnHandle theRegion);
  25. short CalcThumbLen(Rect *ctlRect);
  26. void CalcThumbRects(ControlHandle me, short value,    Rect *roundThumb);
  27. void CleanOldThumb(ControlHandle me, Rect *thumbRect);
  28. void CopyRect(Rect *src, Rect *dest);
  29. void DrawMe(ControlHandle me, short part);
  30. void DrawMyFrame(ControlHandle me, Rect *grayRect);
  31. void DrawMyIndicator(ControlHandle me, Rect *thumbRect);
  32. void InitMe(ControlHandle me);
  33. void MapPt2Value(ControlHandle me, Point *aPoint, short *value);
  34. void MapValue2Point(ControlHandle me, short value, Point *aPoint);
  35. void PositionMe(ControlHandle me, short deltaV, short deltaH);
  36. void ProvideDragInfo(ControlHandle me, ThumbInfo *param);
  37. Boolean TestForColor(void);
  38. long TestMe(ControlHandle me, short v, short h);
  39. Boolean UseColorQD(ControlHandle me, Rect *theRect);
  40. Boolean Using32Bit(void);
  41.